From 96967abdc7dc36c793d136122101cbb73d29c73a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 30 May 2008 16:04:20 +0100 Subject: [PATCH] Add xen_phys_start value in the crash info note This patch makes the vmcore utilities (ex. crash, makedumpfile) be able to get the relocation address of the xen hypervisor from a vmcore. It is necessary for the utilities to find the data of the hypervisor structures. Note that this patch does not raise any comptibility issue for the utilities (which I know) nor the other components of xen. Signed-off-by: Itsuro Oda --- xen/arch/x86/crash.c | 1 + xen/include/xen/elfcore.h | 1 + 2 files changed, 2 insertions(+) diff --git a/xen/arch/x86/crash.c b/xen/arch/x86/crash.c index 831dc7e04d..d38f969d02 100644 --- a/xen/arch/x86/crash.c +++ b/xen/arch/x86/crash.c @@ -102,6 +102,7 @@ void machine_crash_shutdown(void) hvm_cpu_down(); info = kexec_crash_save_info(); + info->xen_phys_start = xen_phys_start; info->dom0_pfn_to_mfn_frame_list_list = arch_get_pfn_to_mfn_frame_list_list(dom0); } diff --git a/xen/include/xen/elfcore.h b/xen/include/xen/elfcore.h index 175ee628fe..d0fd4266e8 100644 --- a/xen/include/xen/elfcore.h +++ b/xen/include/xen/elfcore.h @@ -66,6 +66,7 @@ typedef struct { unsigned long xen_compile_time; unsigned long tainted; #if defined(__i386__) || defined(__x86_64__) + unsigned long xen_phys_start; unsigned long dom0_pfn_to_mfn_frame_list_list; #endif #if defined(__ia64__) -- 2.30.2